﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Graphexcersize
{
    public class Edge
    {
        private int id;
        private Vertex v1;
        private Vertex v2;
        private int weight;
        private bool direction;

        public Edge(int id, Vertex v1, Vertex v2, int weight)
        {
            this.v1 = v1;
            this.v2 = v2;
            direction = false;
            this.weight = weight;
        }

        public Vertex V1
        {
            get { return v1; }
            set { v1 = value; }
        }

        public  Vertex V2
        {
            get { return v2; }
            set { v2 = value; }
        }

        public int Weight
        {
            get { return weight; }
            set { weight = value; }
        }

        public bool Direction
        {
            get { return direction; }
            set { direction = value; }
        }

    }
}
